package com.ziyun.erp.modules.goods.VO;

import com.ziyun.erp.modules.goods.entity.GoodsAttributeEntity;
import com.ziyun.erp.modules.goods.entity.GoodsOptionEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * 模板绑定选择包装类
 *
 * @author xueqz
 * @email
 * @date
 */
public class TempOptionVO {

    private List<GoodsOptionEntity> goodsOptionList;

    private Long attributeId;

    private String attributeName;

    private String attributeType;

    private List<Long> selectedOptionList;

    private GoodsAttributeEntity goodsAttributeEntity;

    private List<Long> influenceAttributeIds;

    private Boolean influenceCraft;

    public List<GoodsOptionEntity> getGoodsOptionList() {
        return goodsOptionList;
    }

    public void setGoodsOptionList(List<GoodsOptionEntity> goodsOptionList) {
        this.goodsOptionList = goodsOptionList;
    }

    public Long getAttributeId() {
        return attributeId;
    }

    public void setAttributeId(Long attributeId) {
        this.attributeId = attributeId;
    }

    public List<Long> getSelectedOptionList() {
        if(this.selectedOptionList == null){
            return new ArrayList<>();
        }else{
            return selectedOptionList;
        }
    }

    public void setSelectedOptionList(List<Long> selectedOptionList) {
        this.selectedOptionList = selectedOptionList;
    }

    public String getAttributeName() {
        return attributeName;
    }

    public void setAttributeName(String attributeName) {
        this.attributeName = attributeName;
    }

    public String getAttributeType() {
        return attributeType;
    }

    public void setAttributeType(String attributeType) {
        this.attributeType = attributeType;
    }

    public GoodsAttributeEntity getGoodsAttributeEntity() {
        return goodsAttributeEntity;
    }

    public void setGoodsAttributeEntity(GoodsAttributeEntity goodsAttributeEntity) {
        this.goodsAttributeEntity = goodsAttributeEntity;
    }

    public List<Long> getInfluenceAttributeIds() {
        if(this.selectedOptionList == null){
            return new ArrayList<>();
        }else{
            return influenceAttributeIds;
        }
    }

    public void setInfluenceAttributeIds(List<Long> influenceAttributeIds) {
        this.influenceAttributeIds = influenceAttributeIds;
    }

    public Boolean getInfluenceCraft() {
        return influenceCraft;
    }

    public void setInfluenceCraft(Boolean influenceCraft) {
        this.influenceCraft = influenceCraft;
    }
}
